package nxu.it.model;

import java.time.LocalDateTime;

public class Todo {
    private Integer id;
    private String content;

    public String getContenttype() {
        return contenttype;
    }

    public void setContenttype(String contenttype) {
        this.contenttype = contenttype;
    }

    private String contenttype;
    private Boolean complete = false;
    private LocalDateTime createAt = LocalDateTime.now();
    private LocalDateTime updateAt;
    private String username;

    public Todo() {
    }

    public Todo(String content) {
        this.content = content;
    }
    public Todo(String content,String contenttype) {
        this.content = content;
        this.contenttype=contenttype;
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getComplete() {
        return complete;
    }

    public void setComplete(Boolean complete) {
        this.complete = complete;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Todo{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", complete=" + complete +
                ", createAt=" + createAt +
                ", updateAt=" + updateAt +
                ", username='" + username + '\'' +
                '}';
    }
}
